import axios from 'axios'
import envFuncs from '@/config/base'
let env = envFuncs.getParams()
import { U, getRequestId } from '../../lib/backend'
import Q from 'q'

export default {
  course_orders ({ rootState }, data) {
    const API = env.CRM_API_HOST
    // const API = 'http://rapapi.local:8800/mockjsdata/1'
    const uri = '/users/' + rootState.app.token + '/customs/' + data.custom_id + '/course_orders'
    const url = API + uri
    return axios.get(url)
  }
}
